package net.dianpin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletResponse;

@Controller
public class ErrorCatchController {

    @RequestMapping(value = "/error404", method = RequestMethod.GET)
    public String index(HttpServletResponse response) {
        response.setContentType("text/html;charset=UTF-8");
        return "error404";
    }

}
